/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package me;
import java.awt.*;
import javax.swing.*;
import java.lang.reflect.Method;
/**
 *
 * @author hcc25_000
 */
public class test {
    public static void main(String[] args){
        try{
            Class c=Class.forName("me.c");
            Object o=c.newInstance();
            Method m=c.getMethod("sample");
            m.invoke(o);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
    ImageIcon i=new ImageIcon("");
    
}

class c{
    public void sample(){
        System.out.println("cc");
    }
}